home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 4: GNU Archives / Linux Cubed Series 4 - GNU Archives.iso / gnu / glibc-1.09 / glibc-1 / glibc-1.09.1 / mach / mach_error.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-07-18  |  2.0 KB  |  81 lines

  1. /* 
  2.  * Mach Operating System
  3.  * Copyright (c) 1991,1990,1989 Carnegie Mellon University
  4.  * All Rights Reserved.
  5.  * 
  6.  * Permission to use, copy, modify and distribute this software and its
  7.  * documentation is hereby granted, provided that both the copyright
  8.  * notice and this permission notice appear in all copies of the
  9.  * software, derivative works or modified versions, and any portions
  10.  * thereof, and that both notices appear in supporting documentation.
  11.  * 
  12.  * CARNEGIE MELLON ALLOWS FREE USE OF THIS SOFTWARE IN ITS 
  13.  * CONDITION.  CARNEGIE MELLON DISCLAIMS ANY LIABILITY OF ANY KIND FOR
  14.  * ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE.
  15.  * 
  16.  * Carnegie Mellon requests users of this software to return to
  17.  * 
  18.  *  Software Distribution Coordinator  or  Software.Distribution@CS.CMU.EDU
  19.  *  School of Computer Science
  20.  *  Carnegie Mellon University
  21.  *  Pittsburgh PA 15213-3890
  22.  * 
  23.  * any improvements or extensions that they make and grant Carnegie the
  24.  * rights to redistribute these changes.
  25.  */
  26. /*
  27.  * HISTORY
  28.  * $Log: mach_error.h,v $
  29.  * Revision 1.2  1993/11/23  20:39:08  mib
  30.  * entered into RCS
  31.  *
  32.  * Revision 2.2  92/01/16  00:08:10  rpd
  33.  *     Moved from user collection to mk collection.
  34.  * 
  35.  * Revision 2.2  91/03/27  15:39:13  mrt
  36.  *     First checkin
  37.  * 
  38.  */
  39. /*
  40.  *    File:    mach_error.h
  41.  *    Author:    Douglas Orr, Carnegie Mellon University
  42.  *    Date:    Mar. 1988
  43.  *
  44.  *    Definitions of routines in mach_error.c
  45.  */
  46.  
  47. #ifndef    _MACH_ERROR_
  48. #define    _MACH_ERROR_    1
  49.  
  50. #include <mach/error.h>
  51.  
  52. const char    *mach_error_string(
  53. /*
  54.  *    Returns a string appropriate to the error argument given
  55.  */
  56. #if    c_plusplus
  57.     mach_error_t error_value
  58. #endif    c_plusplus
  59.                 );
  60.  
  61. void        mach_error(
  62. /*
  63.  *    Prints an appropriate message on the standard error stream
  64.  */
  65. #if    c_plusplus
  66.     char         *str,
  67.     mach_error_t    error_value
  68. #endif    c_plusplus
  69.                 );
  70.  
  71. const char    *mach_error_type(
  72. /*
  73.  *    Returns a string with the error system, subsystem and code
  74. */
  75. #if    c_plusplus
  76.     mach_error_t    error_value
  77. #endif  c_plusplus
  78.                 );
  79.  
  80. #endif    _MACH_ERROR_
  81.